package com.example.demo.controlller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User:xieChao
 * Date:2022/12/16 16:05
 */
@RestController
public class FireController {
    @RequestMapping("/fireworks")
    public void fireworks(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       request.getRequestDispatcher("/fireworks.html").forward(request,response);
    }
}
